package com.itic.appbase.framework.type;

public enum PayMethod {

    DirectToAccount("direct","直接到账"),GuaranteePay("guaranteePay","担保支付");
    private String method;
    private String name;

    PayMethod(String method, String name) {
        this.method = method;
        this.name = name;
    }

    public String getMethod() {
        return method;
    }

    public String getName() {
        return name;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static PayMethod getPayMethod(String method){
        PayMethod PayMethod =null;
        switch (method){
            case "direct":
                PayMethod =PayMethod.DirectToAccount;
                break;
            case "guaranteePay":
                PayMethod =PayMethod.GuaranteePay;
                break;
        }
        return PayMethod;
    }
}
